package es

import (
	"github.com/olivere/elastic/v7"
)

// range 选项
type RangeOption func(r *elastic.RangeQuery)

//range gt
func Gt(value interface{}) RangeOption {
	return func(r *elastic.RangeQuery) {
		r.Gt(value)
	}
}

//range gte
func Gte(value interface{}) RangeOption {
	return func(r *elastic.RangeQuery) {
		r.Gte(value)
	}
}

//range lt
func Lt(value interface{}) RangeOption {
	return func(r *elastic.RangeQuery) {
		r.Lt(value)
	}
}

//range lte
func Lte(value interface{}) RangeOption {
	return func(r *elastic.RangeQuery) {
		r.Lte(value)
	}
}
